﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace XNA.Common.Objects
{
	public class Actor : Entity
	{
		public Actor (float x, float y, float z, int height, float rotation)
			: base (x, y, z, height, rotation)
		{

		}

		#region METHODS (PUBLIC)

		public void Rotate (float amount)
		{
			Rotation *= Matrix.CreateRotationY (amount);
		}

		public void Move (float forMove, float rightMove)
		{
			var move = (Rotation.Forward * forMove) + (Rotation.Right * rightMove);
			Position += new Vector3 (move.X, 0, move.Z);
		}

		#endregion
	}
}
